export const sanitizeLink = function (input) {
  /*eslint-disable no-script-url*/
  if(input && input.trim().startsWith('javascript:')) {
    input = 'about#blocked'
  }
  return input;
}

export const jsSanitize = function (input) {
  /*eslint-disable no-script-url*/
  if (input && input.startsWith("javascript:")) {
    return ''
  }
  else {
    return input
  }
}

export const HtmlSanitize = function (input) {
  /*eslint-disable no-script-url*/
  return input && input.replace(/</g, "&lt;").replace(/>/g, "&gt;")
}
